package tieba.entity;

// Generated 2014-11-22 2:15:43 by Hibernate Tools 4.0.0

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbSignTask generated by hbm2java
 */
@Entity
@Table(name = "tb_sign_task", catalog = "tb")
public class TbSignTask implements java.io.Serializable {

	private Integer tstId;
	private TbUser tbUser;
	private CmsUser cmsUser;
	private String name;
	private Date exeTime;
	private Integer exeStatus;
	private Integer exeResult;

	public TbSignTask() {
	}

	public TbSignTask(TbUser tbUser, CmsUser cmsUser, String name,
			Date exeTime, Integer exeStatus, Integer exeResult) {
		this.tbUser = tbUser;
		this.cmsUser = cmsUser;
		this.name = name;
		this.exeTime = exeTime;
		this.exeStatus = exeStatus;
		this.exeResult = exeResult;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "tst_id", unique = true, nullable = false)
	public Integer getTstId() {
		return this.tstId;
	}

	public void setTstId(Integer tstId) {
		this.tstId = tstId;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "bu_id")
	public TbUser getTbUser() {
		return this.tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cu_id")
	public CmsUser getCmsUser() {
		return this.cmsUser;
	}

	public void setCmsUser(CmsUser cmsUser) {
		this.cmsUser = cmsUser;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "exe_time", length = 19)
	public Date getExeTime() {
		return this.exeTime;
	}

	public void setExeTime(Date exeTime) {
		this.exeTime = exeTime;
	}

	@Column(name = "exe_status")
	public Integer getExeStatus() {
		return this.exeStatus;
	}

	public void setExeStatus(Integer exeStatus) {
		this.exeStatus = exeStatus;
	}

	@Column(name = "exe_result")
	public Integer getExeResult() {
		return this.exeResult;
	}

	public void setExeResult(Integer exeResult) {
		this.exeResult = exeResult;
	}

}
